package com.toannv.card;

public class card {
	private int number;//Số của quân bài ví dụ A(1), 2, 3, 4, 5, 6, 7, 8, 9, 10, J(11), Q(12), K(13)
	private int poker;//Chất của quân bài. 4 = Cơ, 3 = Rô, 2 = tép, 1 = bích
	
	public card(int num, int po){
		this.number = num;
		this.poker = po;
	}
	
	public card(card other){
		this.number = other.number;
		this.poker = other.poker;
	}
	
	public void setNumber(int num){
		this.number = num;
	}
	
	public void setPoker(int po){
		this.poker = po;
	}
	
	public int getNumber(){
		return number;
	}
	
	public int getPoker(){
		return poker;
	}
	
	public boolean compare(card Other){
		if(this.getNumber()==Other.getNumber() && this.getPoker() == Other.getPoker()){
			return true;
		}
		else return false;
	}
	
	public boolean compareNumber(card Other){
		if(this.getNumber()==Other.getNumber()){
			return true;
		}
		else return false;
	}
	
	public boolean comparePoker(card Other){
		if(this.getPoker() == Other.getPoker()){
			return true;
		}
		else return false;
	}
}
